<ion-view view-title="{{trade.productName}}">
  <ion-content class="content has-header ionic-pseudo"> 
    <div ng-if="!rollstate">
    <div class="itemc">
    <div class="col-25">项目名称</div>
    <div class="col-75">{{trade.productName}}</div>
    </div>
    <div class="itemc">
    <div class="col-25">交易金额</div>
    <div class="col-75">¥{{trade.tradeAmount}}</div>
    </div>
    <div class="itemc">
    <div class="col-25">交易状态</div>
    <div class="col-75">{{trade.tradeStatusStr}}</div>
    </div>
    <!-- <div class="itemc">
    <div class="col-25">状态描述</div>
    <div class="col-75">{{trade.tradeStatusDesc}}</div>
    </div> -->
    <div class="itemc">
    <div class="col-25">创建时间</div>
    <div class="col-75">{{trade.createTime | date: 'yyyy-MM-dd HH:mm:ss'}}</div>
    </div>
    <div class="itemc">
    <div class="col-25">付款方式</div>
    <div class="col-75">{{trade.bankName}}--尾号{{trade.cardNumber | limitTo:-4}}</div>
    </div>
    <div class="itemc">
    <div class="col-25">收益</div>
    <div class="col-75">¥{{trade.income}}</div>
    </div>
    <!-- <div class="itemc">
    <div class="col-25">总收益</div>
    <div class="col-75">{{trade.incomeAmount}}</div>
    </div> -->
    <div class="itemc">
    <div class="col-25">起息时间</div>
    <div class="col-75">{{trade.incomeStartTime| date: 'yyyy-MM-dd'}}</div>
    </div>
    <div class="itemc">
    <div class="col-25">结息时间</div>
    <div class="col-75">{{trade.incomeEndTime| date: 'yyyy-MM-dd'}}</div>
    </div>
    <!-- <div class="itemc">
    <div class="col-25">回款计划</div>
    <div class="col-75">{{trade.refundplan}}</div>
    </div> -->
    <div class="itemc">
    <div class="col-25">回款时间</div>
    <div class="col-75">{{trade.refundTime| date: 'yyyy-MM-dd'}}</div>
    </div>
    <div class="itemc">
    <div class="col-25">交易类型</div>
    <div class="col-75">{{trade.tradeTypeStr}}</div>
    </div>
    </div>
    <!-- <div class="itemc">
    <div class="col-25">虚拟总额</div>
    <div class="col-75">{{trade.virtualAmount}}</div>
    </div> -->  
    <div ng-if="rollstate">
    <div class="sub-header size-21">
      <span>项目名称</span>{{trade.productName}}
    </div>
    <div class="list">
      <label class="item item-input">
        <span class="input-label">交易金额</span>¥{{trade.tradeAmount}}
      </label>  
      <label class="item item-input">
        <span class="input-label">转出金额</span>
        <input type="text" placeholder="请填写转出金额" ng-model="rolldata.tradeAmount">
      </label><!-- 
      <label class="item item-input">
        <span class="input-label">交易密码</span>
        <input type="text" placeholder="可转出金额" ng-model="rollout.tradePwd">
      </label> -->
    </div>
    <ion-item class="bar bar-footer bar-positive">
      <div class="title" ng-click="rollout()">转出<div>
    </ion-item> 
    </div>

  </ion-content>  
</ion-view>

<!-- 
<ion-view view-title="活期宝A">
  <ion-content class="content has-header ionic-pseudo"> 
    <div class="">
      <p>活期宝A</p>
      <p></p>
      <div class="asset-dqb-amount">
        <p>￥1000</p>
      </div>
    </div>
    <div>
      <button class="button" ng-click="rollin()">转入</button>
      <button class="button bar-positive" ui-sref="user-asset-rollout" ng-click="rollout()">转出</button>
    </div>
  </ion-content>
</ion-view> -->

<script id="tradepwd.html" type="text/ng-template">
<div class="tc pr size-14">请输入金法宝交易密码
<span class="closetwd fr" ng-click="canceltwd()"><i class="icon size-18 ion-close-round"></i></span>
</div>
<div class="tc padding">
转出金额：{{rolldata.tradeAmount}}元{{}}
</div>
<div class="passContainer tc" ng-click="shownumberkeyboard()">
    <div class="passItem"><i class="icon size-24 positive icon-jiaqian" ng-if="pwdlenght>=1"></i></div>
    <div class="passItem"><i class="icon size-24 positive icon-jiaqian" ng-if="pwdlenght>=2"></i></div>
    <div class="passItem"><i class="icon size-24 positive icon-jiaqian" ng-if="pwdlenght>=3"></i></div>
    <div class="passItem"><i class="icon size-24 positive icon-jiaqian" ng-if="pwdlenght>=4"></i></div>
    <div class="passItem"><i class="icon size-24 positive icon-jiaqian" ng-if="pwdlenght>=5"></i></div>
    <div class="passItem"><i class="icon size-24 positive icon-jiaqian" ng-if="pwdlenght>=6"></i></div>
</div>
<div class="tc">
<button class="button button-full button-positive" ng-disabled="pwdlenght!=6" ng-click="rollmoney()">确定</button>
</div>
</script>